import {ResponseData} from "@/api/home/type.ts";

export interface SubmitOrderResponseData extends ResponseData{
  data:number
}

export interface OrderInfo{
  "id": number,
  "createTime": string,
  "updateTime": string,
  "isDeleted": number,
  "param": {
    "orderStatusString": string
  },
  "userId": number,
  "outTradeNo": string,
  "hoscode": string,
  "hosname": string,
  "depcode": string,
  "depname": string,
  "scheduleId": string,
  "title": string,
  "reserveDate": string,
  "reserveTime": number,
  "patientId": number,
  "patientName": string,
  "patientPhone": string,
  "hosRecordId": string,
  "number": number,
  "fetchTime": string,
  "fetchAddress": string,
  "amount": number,
  "quitTime": string,
  "orderStatus": number
}

export interface OrderInfoResponseData extends ResponseData{
  data: OrderInfo
}

export interface PayInfo{
  codeUrl:string,
  orderId:string,
  totalFee:number,
  resultCode:string
}
export interface QrCode extends ResponseData{
  data: PayInfo
}

export interface PayResultResponseData extends ResponseData{
  data: boolean
}

export interface UserInfo{
  id:number,
  createTime:string,
  updateTime:string,
  isDeleted:number,
  param:{
  },
  openid:string,
  nickName:string,
  phone:string,
  name:string,
  certificatesType:string,
  certificatesNo:string,
  certificatesUrl:string,
  authStatus:number,
  status:number,
}

export interface UserInfoResponseData extends ResponseData{
  data: UserInfo
}
export interface UserParams{
  name:string,
  certificatesType:string,
  certificatesNo:string,
  certificatesUrl:string,
}

export interface UserOrder{
  id: number,
  createTime: string,
  updateTime: string,
  isDeleted: number,
  param: {
    orderStatusString: string
  },
  userId: number,
  outTradeNo: string,
  hoscode: string,
  hosname: string,
  depcode: string,
  depname: string,
  reserveDate: string,
  reserveTime: number,
  scheduleId: string,
  title: string,
  patientId: number,
  patientName: string,
  patientPhone: string,
  hosRecordId: string,
  number: number,
  fetchTime: string,
  fetchAddress: string,
  amount: number,
  quitTime: string,
  orderStatus: number,

}

export interface UserOrderResponseData extends ResponseData{
  data: {
    records: UserOrder[],
    total: number,
    size: number,
    current: number,
    orders: [],
    hitCount: boolean,
    searchCount: boolean,
    pages: number
  }
}

export interface OrderStatus{
  comment: string,
  status: number
}
export interface OrderStatusResponseData extends ResponseData{
  data: OrderStatus[]
}
